package thss.mro.entity;

import thss.mro.util.Constants;

/**
 * 模板字段的动态属性
 */
public class DynamicAttrs {

	private int dynamicType;//动态类型
				//1-范围（通过末端偏移得到该字段动态范围，除以字段长度计算出数量）
	
	private String getNumMethod; //获得数量的方法名
	
//	private int startOffset; //起始偏移
	
	private int endOffset; //末端偏移
	
	//动态属性构造器（范围）
	public DynamicAttrs(int endOffset){
		this.dynamicType = Constants.FIELD_DYNAMICATTRS_TYEP_RANGE;
		this.endOffset = endOffset;
	}

	public int getDynamicType() {
		return dynamicType;
	}

	public void setDynamicType(int dynamicType) {
		this.dynamicType = dynamicType;
	}

	public String getGetNumMethod() {
		return getNumMethod;
	}

	public void setGetNumMethod(String getNumMethod) {
		this.getNumMethod = getNumMethod;
	}

	public int getEndOffset() {
		return endOffset;
	}

	public void setEndOffset(int endOffset) {
		this.endOffset = endOffset;
	}
}
